home *** CD-ROM | disk | FTP | other *** search
- Path: netnews.ntu.edu.tw!news
- From: ben@water.ee.nsysu.edu.tw (Benjamin Han)
- Newsgroups: comp.lang.c++
- Subject: HELP on CodeGuard!!
- Date: Thu, 28 Mar 1996 10:44:45 GMT
- Organization: AI lab, dept. of E.E., NSYSU.
- Message-ID: <315a699f.2871751@netnews.ntu.edu.tw>
- Reply-To: ben@water.ee.nsysu.edu.tw
- NNTP-Posting-Host: @ben.ee.nsysu.edu.tw
- X-Newsreader: Forte Agent .99d/32.182
-
- I'm currently involved in an AI project using Borland C++ 4.53 with CodeGuard
- (CG) 1.0. During the debugging process CG reported there's a memory leak in my
- code as follows:
-
- ===============================================================
- Error 00001. 0x300010:
- Resource leak: The memory block (0x40FF0AEE) was never freed
-
- The memory block (0x40FF:0AEE) [size: 20 bytes] was allocated with malloc
- Call Tree:
- 0x0EF7:8717(=DGTEST.EXE:0x01:8717)
- 0x0EF7:0157(=DGTEST.EXE:0x01:0157)
- ===============================================================
-
- But the odd thing is, I didn't use any malloc function to allocate any memory
- block! All of my source code is in C++. I tried to check the corresponding map
- file but couldn't find the error spot (0x01:8717). Would anyone please give me
- some suggestions on this? I'm stuck. Thank you in advance.
-
-
- Benjamin Han
- ben@water.ee.nsysu.edu.tw
-
- Dept. of E.E., National Sun Yat-sen Univ.
- Taiwan.
-